from graph import*
windowSize(500,500)
x=int(input("X="))
y=int(input('Y='))
n=int(input('N='))
penColor('red')
brushColor('green')
penSize(4)
polygon([(x*n,y*n),(x*n+50*n,y*n),(x*n+50*n,y*n+50*n),(x*n+100*n,y*n+50*n),(x*n+100*n,y*n+100*n),(x*n+50*n,y*n+100*n),
         (x*n+50*n,y*n+150*n),(x*n,y*n+150*n),(x*n,y*n)])
if x*n>500 or y*n>500 or x*n+50*n>500 or y*n+50*n>500 or x*n+100*n>500 or y*n+100*n>500 or y*n+150*n>500 or 0>x*n or 0>y*n or  0>x*n+50*n or 0>y*n+50*n or 0>x*n+100*n or 0>y*n+100*n or 0>y*n+150*n:
    print('error')
